<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="发货通知单" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-6 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addData()"
                        ng-disabled="!btnPermission.deliveryNoticeAdd"
                        title="{{!btnPermission.deliveryNoticeAdd?'无权限执行此操作':''}}">新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="delData('batch')" ng-disabled="!btnPermission.deliveryNoticeDel"
                        title="{{!btnPermission.deliveryNoticeDel?'无权限执行此操作':''}}">删除</button>
                    <button class="btn btn-operate m-r-sm" ng-click="syncCrm('batch')" ng-disabled="!btnPermission.deliveryNoticeCRM"
                        title="{{!btnPermission.deliveryNoticeDel?'无权限执行此操作':''}}">同步CRM</button>    
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrint()"
                        ng-disabled="!btnPermission.deliveryNoticePrint"
                        title="{{!btnPermission.deliveryNoticePrint?'无权限执行此操作':''}}">批量打印</button>
                    <button class="btn btn-operate m-r-sm" ng-click="readyOpr(item.id, 'batch')" ng-disabled="!btnPermission.deliveryNoticeReady"
                        title="{{!btnPermission.deliveryNoticeReady?'无权限执行此操作':''}}">就绪</button>
                    <button class="btn btn-operate m-r-sm" ng-click="auditData('batch')" ng-disabled="!btnPermission.deliveryAudit"
                        title="{{!btnPermission.deliveryAudit?'无权限执行此操作':''}}">批量审核</button>
                    <button class="btn btn-operate" ng-click="batchSapPost()" ng-disabled="!btnPermission.deliveryNoticePost"
                        title="{{!btnPermission.deliveryNoticePost?'无权限执行此操作':''}}">批量过账</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importGYAdd()" ng-if="isWJ" style="margin-left: 8px;" translate>导入钢印号</button>
                </div>
                <div class="search-bar wrapper-none col-xs-6">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="ids">
                                    <i class="yb-icon ico-export-o"></i> 导出
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition"
                                    download-duration="3" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> 导出全部
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="单号"
                            ng-model="condition.deliveryNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search()">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search()"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">发货通知单号：</label>
                        <textarea ng-model="condition.billNos" class="form-control" placeholder="逗号分隔或者换行分隔"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">客户名称：</label>
                        <textarea ng-model="condition.purchaseNames" class="form-control"
                            placeholder="逗号分隔或者换行分隔"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">零件编号：</label>
                        <textarea ng-model="condition.materialsNoT" class="form-control" placeholder="逗号分隔或者换行分隔" ng-blur="handleMaterialBlur($event)"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">销售单号：</label>
                        <input type="text" name="saleNo" ng-model="condition.saleNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">采购合同号：</label>
                        <input type="text" name="purchaseContractNo" ng-model="condition.purchaseContractNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">发出仓库：</label>
                        <input type="text" name="outLocation" ng-model="condition.outLocation" class="form-control">
                    </div>

                    <div class="form-group clearfix"  ng-if="isWJ">
                        <label class="control-label" ><span translate>5日未入库</span>:</label>
                        <toggle ng-model="condition.unInboundFlagParam" yb-click="fiveDaysUnInStore()"></toggle>
                    </div>

                    <div class="form-group clearfix" ng-if="!!isJCH">
                        <label class="control-label">审核状态：</label>
                        <select name="outStatus" class="form-control" ng-model="condition.reviewState"
                            ng-options="item.id as item.name for item in reviewState">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">出库状态：</label>
                        <select name="outStatus" class="form-control" ng-model="condition.isOut"
                            ng-options="item.id as item.name for item in outState">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">退货状态：</label>
                        <select name="returnStatus" class="form-control" ng-model="condition.isReturn"
                            ng-options="item.id as item.name for item in returnState">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">冲销状态：</label>
                        <select name="reverseStatus" class="form-control" ng-model="condition.isReverse"
                            ng-options="item.id as item.name for item in reverseState">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">是否过账：</label>
                        <select name="reverseStatus" class="form-control" ng-model="condition.isPosting">
                            <option value="">请选择</option>
                            <option value=0>否</option>
                            <option value=1>是</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">是否签收：</label>
                        <select name="reverseStatus" class="form-control" ng-model="condition.isSign">
                            <option value="">请选择</option>
                            <option value=0>否</option>
                            <option value=1>是</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">是否已开票：</label>
                        <select name="reverseStatus" class="form-control" ng-model="condition.ticketState">
                            <option value="">请选择</option>
                            <option value=0>否</option>
                            <option value=1>是</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">备货状态：</label>
                        <select name="reverseStatus" class="form-control" ng-model="condition.isReady">
                            <option value="">请选择</option>
                            <option value=0>备货中</option>
                            <option value=1>已就绪</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">SAP关联单号：</label>
                        <input type="text" name="sapOutNo" ng-model="condition.sapOutNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">申请人：</label>
                        <input type="text" name="createName" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label">制单时间：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                            is-open="datePickerFlag[0]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                            is-open="datePickerFlag[1]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix" ng-if="isTJ">
                        <label class="control-label">CRM单号：</label>
                        <input type="text" name="createName" ng-model="condition.crmOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">是否打印：</label>
                        <select name="reverseStatus" class="form-control" ng-model="condition.isPrint">
                            <option value="">请选择</option>
                            <option value=0>否</option>
                            <option value=1>是</option>
                        </select>
                    </div>
                    <div class="form-group clearfix" ng-if="isJCH">
                        <label class="control-label">合同号：</label>
                        <input type="text" name="contractBillNo" ng-model="condition.contractBillNo" class="form-control">
                    </div>
                    <div class="form-group clearfix" ng-if="isJCH">
                        <label class="control-label">订单类型：</label>
                        <div class="col-xs-8 wrapper-none">
                            <select class="form-control" ng-model="condition.billTypeMode" >
                                <option value="" translate>请选择订单</option>
                                <option value="合同" translate>合同</option>
                                <option value="现金" translate>现金</option>
                                <option value="授信" translate>授信</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group clearfix" ng-if="isDL || isZHL" >
                        <label class="control-label"><span translate>订单是否预警</span>：</label>
                        <label class="control-label">
                            <input type="radio" class="m-r-sm pull-left" yb-radio
                                   ng-model="condition.notCompletedForOver7DaysCond" value="1"
                                   yb-radio-name="是">
                            <input type="radio" class="m-r-sm pull-left" yb-radio
                                   ng-model="condition.notCompletedForOver7DaysCond" value="0"
                                   yb-radio-name="否">
                        </label>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center border-l-none th-check">
                                        <div yb-check-box yb-checked="markInfo.allCheckedBill"
                                            yb-click="selectAll(dataList, 'Bill')"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.scrollLeft"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeftWidth">
                        <table class="table-fixed border-none">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="font-0">
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="sapPost(item.id, item.isOut)"
                                                ng-disabled="item.isPosting === 1 || item.isOut === '1' || !btnPermission.deliveryNoticePost"
                                                title="{{!btnPermission.deliveryNoticePost?'无权限执行此操作':''}}">过账</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="sapRemove(item.id)"
                                                ng-disabled="!item.sapSaleOrder || !btnPermission.deliveryNoticePostDel"
                                                title="{{!btnPermission.deliveryNoticePostDel?'无权限执行此操作':''}}">过账删除</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="syncCrm('single', item.id)"
                                                ng-disabled="item.synCrmFlag == '1' || !btnPermission.deliveryNoticeCRM"
                                                title="{{!btnPermission.deliveryNoticeCRM?'无权限执行此操作':''}}">同步CRM</button>    
                                            <button class="btn btn-operate m-r-xs" ng-click="auditBill(item)"  ng-if="!!btnPermission.deliveryAudit"
                                                ng-disabled="item.reviewState !='1'|| !btnPermission.deliveryAudit"
                                                title="{{!btnPermission.deliveryAudit?'无权限执行此操作':''}}">审核</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="printSingle(item)"
                                                ng-disabled="!btnPermission.deliveryNoticePrint || (isJCH&&item.reviewState!=2)"
                                                title="{{!btnPermission.deliveryNoticePrint?'无权限执行此操作':''}}">打印</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="outbound(item)"
                                                ng-if="curOrg.isBarcode === 0"
                                                ng-disabled="(item.isOut !== '0' && item.isOut !== '1') || item.isReturn !== 0 || item.isReverse !== 0 || !btnPermission.deliveryNoticeOut"
                                                title="{{!btnPermission.deliveryNoticeOut?'无权限执行此操作':''}}">出库</button>

                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="revokeOutbound(item)"
                                                ng-disabled="!btnPermission.deliveryNoticeRevokeOut || item.isOut==0"
                                                title="{{!btnPermission.deliveryNoticeRevokeOut?'无权限执行此操作':''}}">撤回出库</button>

                                            <button class="btn btn-operate m-r-xs" ng-click="editData(item)"
                                                ng-disabled="item.status == '1' || item.checkState > 0 || item.isOut == '2' || item.isOut == '3' || item.isReturn !== 0 || item.isReverse !== 0 || !btnPermission.deliveryNoticeEdit || curUser.userId!==item.creatorId"
                                                title="{{!btnPermission.deliveryNoticeEdit?'无权限执行此操作':''}}">编辑</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="delData('single', item.id)"
                                                ng-disabled="item.isOut!=='0' || item.checkState > 0 || item.isPosting == 1 || !btnPermission.deliveryNoticeDel"
                                                title="{{!btnPermission.deliveryNoticeDel?'无权限执行此操作':''}}">删除</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="mandatoryFinish(item.deliveryNo)"
                                                ng-disabled=" item.status == '0' || item.checkState > 0 || item.isOut == '2' || item.isOut == '3' || !btnPermission.mandatoryFinish"
                                                title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="adjustBill(item)"
                                                ng-disabled="item.status == '0' || item.checkState > 0 || item.isOut == '2' || item.isOut == '3' || item.isReturn !== 0 || item.isReverse !== 0 || !btnPermission.adjust"
                                                title="{{!btnPermission.adjust?'无权限执行此操作':''}}">调整</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="settlement(item)"
                                                ng-if="!isZHJCH"
                                                ng-disabled="item.status == '0' || item.checkState == 2 || item.isReturn !== 0 || item.isReverse !== 0 || !btnPermission.settlement"
                                                title="{{!btnPermission.settlement?'无权限执行此操作':''}}">结算</button>
                                            <button class="btn btn-operate" ng-click="readyOpr(item.id, 'single')"
                                                ng-disabled="item.status == '0' || item.isReady === 1 || !btnPermission.deliveryNoticeReady"
                                                title="{{!btnPermission.deliveryNoticeReady?'无权限执行此操作':''}}">就绪</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                        <a ng-if="!!itemCol.clickFn" class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                    yb-click="selectAll(dataList, 'Bill')"></div>
                <button class="btn btn-operate" ng-click="delData('batch')"
                    ng-disabled="!btnPermission.deliveryNoticeDel"
                    title="{{!btnPermission.deliveryNoticeDel?'无权限执行此操作':''}}">删除</button>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="{{tabFlag.name}}" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="clearfix" ng-show="stepList.curStep == 0">
                <div class="row wrapper-y-sm">
                    <div class="search-bar wrapper-none">
                        <div class="normal-search clearfix">
                            <label class="control-label">意向单号：</label>
                            <input type="text" class="form-control m-r-sm" style="width: 170px"
                                ng-model="orderCondition.saleNo">
                            <label class="control-label">客户名称：</label>
                            <input type="text" class="form-control m-r-sm" ng-model="orderCondition.purchaseOrgName">
                            <label class="control-label">申请人：</label>
                            <input type="text" class="form-control m-r-sm" ng-model="orderCondition.createName">

                            <div class="form-group clearfix m-b-none">
                                <label class="control-label">制单时间：</label>
                                <input type="text" class="form-control date-picker" ng-model="orderCondition.createDateStart"
                                datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                                is-open="datePickerFlag[0]" close-text="关闭"
                                ng-change="checkDate(orderCondition, 'createDateStart', 'createDateEnd')" modal-size="small"
                                readonly>
                                <label class="control-label wave-line">~</label>
                                <input type="text" class="form-control date-picker" ng-model="orderCondition.createDateEnd"
                                datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                                is-open="datePickerFlag[1]" close-text="关闭"
                                ng-change="checkDate(orderCondition, 'createDateStart', 'createDateEnd')" modal-size="small"
                                readonly>
                                <span class="btn btn-primary" ng-click="orderSearch(1)" style="margin-left:20px">搜索</span>
                            </div>

                        </div>
                    </div>
                </div>
                <table class="table">
                    <thead>
                        <tr>
                            <th width="20%">意向单号</th>
                            <th width="20%">客户名称</th>
                            <th width="20%">采购申请号</th>
                            <th width="10%">结算方式</th>
                            <th width="10%">申请人</th>
                            <th width="10%">未创建发货数量</th>
                            <th width="10%">未创建发货金额</th>
                            <th width="10%">制单时间</th>
                            <th width="10%">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-if="orderDataList.length==0">
                            <td colspan="7">暂时没有数据</td>
                        </tr>
                        <tr ng-repeat="item in orderDataList track by $index">
                            <td class="spill-dots" title="{{item.saleNo}}">{{item.saleNo}}</td>
                            <td class="spill-dots" title="{{item.purchaseOrgName}}">{{item.purchaseOrgName}}</td>
                            <td class="spill-dots" title="{{item.purchaseNo}}">{{item.purchaseNo}}</td>
                            <td class="spill-dots" title="{{item.settleTypeName}}">{{item.settleTypeName}}</td>
                            <td class="spill-dots" title="{{item.createName}}">{{item.createName}}</td>
                            <td class="spill-dots" title="{{item.unInformedAmount}}">{{item.unInformedAmount}}</td>
                            <td class="spill-dots" title="{{item.unInformedPrice}}">{{item.unInformedPrice}}</td>
                            <td class="spill-dots" title="{{item.createDate|YbDate}}">
                                {{item.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}</td>
                            <td>
                                <button class="btn btn-operate" ng-disabled="item.deliverStatus == '2'"
                                    ng-click="orderSelectSingle(item.id)">选择</button>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div class="page-bar wrapper-y-sm clearfix">
                    <div yb-page-info ng-model="orderPageInfo" yb-refresh="orderSearch()"></div>
                </div>
            </div>
            <div class="clearfix" ng-show="stepList.curStep == 1">
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>基本信息
                    </div>
                    <div class="pull-right" ng-click="switchDetailBar(0)">
                        <span ng-show="!detailFlag[0]" title="展开"><i class="yb-icon ico-angle-double-down"></i></span>
                        <span ng-show="detailFlag[0]" title="收起"><i class="yb-icon ico-angle-double-up"></i></span>
                    </div>
                </div>
                <form name="orderForm" class="form-horizontal form-up-tb border-b p-t-xs clearfix"
                    ng-show="detailFlag[0]">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100 spill-dots" title="发货通知单号">发货通知单号：</label>
                        <div class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.deliveryNo || '-'}}">
                            {{detailInfo.headerInfo.deliveryNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">客户名称：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                            {{detailInfo.headerInfo.purchaseOrgName}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">销售意向单：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.saleNo}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">采购单号：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.purchaseNo||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">采购合同单号：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.purchaseContractNo||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">国家和地区：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.country||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">交货日期：</label>
                        <div class="col-xs-8 control-label p-l-n text-left">
                            {{(detailInfo.headerInfo.deliveryDate|YbDate:"yyyy-MM-dd") || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">SAP关联单号：</label>
                        <div class="col-xs-8 control-label p-l-n text-left"
                            title="{{detailInfo.headerInfo.sapOutNo || '-'}}">
                            {{detailInfo.headerInfo.sapOutNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">采购级别：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.purchaseLevelName}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">售达方：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.sold||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">送达方：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.delivery||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100 spill-dots" title="采购订单编号">采购订单编号：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="purchaseBillId" class="form-control"
                                ng-model="detailInfo.headerInfo.customerPurchaseCode" maxlength="30">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i>分销渠道：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div dictionary-selector ng-model="detailInfo.headerInfo.distributionChannelName"
                                sel-key="FXQD">
                                <input type="text" name="distributionChannel" class="form-control light-bg"
                                    ng-model="detailInfo.headerInfo.distributionChannelName" placeholder="请选择" required
                                    readonly yb-focus>
                            </div>

                            <div class="msg-block"
                                ng-if="orderForm.distributionChannel.$dirty || (orderForm.distributionChannel.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.distributionChannel.$error.required && !orderForm.distributionChannel.focused">
                                    <div class="msg-triangle"></div>
                                    必填项，请填写
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i>付款条件：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div dictionary-selector ng-model="detailInfo.headerInfo.payConditionName" sel-key="FKTJ">
                                <input type="text" name="payCondition" class="form-control light-bg"
                                    ng-model="detailInfo.headerInfo.payConditionName" placeholder="请选择" required
                                    readonly yb-focus>
                            </div>

                            <div class="msg-block"
                                ng-if="orderForm.payCondition.$dirty || (orderForm.payCondition.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.payCondition.$error.required && !orderForm.payCondition.focused">
                                    <div class="msg-triangle"></div>
                                    必填项，请填写
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">订单类型：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div dictionary-selector ng-model="detailInfo.headerInfo.orderType" sel-key="XSDDLX">
                                <input type="text" name="orderType" class="form-control light-bg"
                                    ng-model="detailInfo.headerInfo.orderType" placeholder="请选择" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i>发运方式：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div select-send-type first-level-model="detailInfo.headerInfo.deliveryTypeId"
                                second-level-model="detailInfo.headerInfo.sendTypeChildId"
                                parent-type-name="detailInfo.headerInfo.deliveryTypeName"
                                child-type-name="detailInfo.headerInfo.sendTypeChildName"></div>
                            <div class="msg-block"
                                ng-if="orderForm.sendType.$dirty || (orderForm.sendType.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.sendType.$error.required && !orderForm.sendType.focused">
                                    <div class="msg-triangle"></div>
                                    必填项，请填写
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i>结算方式：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div dictionary-selector ng-model="detailInfo.headerInfo.settleTypeName" sel-key="JSFS">
                                <input type="text" name="settleType" class="form-control light-bg"
                                    ng-model="detailInfo.headerInfo.settleTypeName" placeholder="请选择" required readonly
                                    yb-focus>
                            </div>

                            <div class="msg-block"
                                ng-if="orderForm.settleType.$dirty || (orderForm.settleType.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.settleType.$error.required && !orderForm.settleType.focused">
                                    <div class="msg-triangle"></div>
                                    必填项，请填写
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i>发出仓库：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div yb-form-clear ng-model="detailInfo.headerInfo.outLocation"
                                select-obj="selectWarehouse()" clear-form="clearWarehouse()" tips-name="发出仓库"
                                form-require="true"></div>

                            <div class="msg-block" ng-if="!detailInfo.headerInfo.outLocation && submitted">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    请选择发出仓库
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i>发出库区：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div yb-form-clear ng-model="detailInfo.headerInfo.outArea" select-obj="selectArea()"
                                clear-form="clearArea()" tips-name="发出库区" form-require="true"></div>

                            <div class="msg-block" ng-if="!detailInfo.headerInfo.outArea && submitted">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    请选择发出库区
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i>收货人：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="receiverName" class="form-control"
                                ng-model="detailInfo.headerInfo.receiverName" required yb-focus maxlength="11">

                            <div class="msg-block"
                                ng-show="orderForm.receiverName.$dirty || (orderForm.receiverName.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.receiverName.$error.required && !orderForm.receiverName.focused">
                                    <div class="msg-triangle"></div>
                                    必填项，请填写
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i>联系方式：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="receiverPhone" class="form-control"
                                ng-model="detailInfo.headerInfo.receiverPhone" required yb-focus maxlength="11">
                            <div class="msg-block"
                                ng-show="orderForm.receiverPhone.$dirty || (orderForm.receiverPhone.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.receiverPhone.$error.required && !orderForm.receiverPhone.focused">
                                    <div class="msg-triangle"></div>
                                    必填项，请填写
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">传真：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="receiverFax" class="form-control"
                                ng-model="detailInfo.headerInfo.receiverFax" maxlength="20">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i>收货地址：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="address" class="form-control"
                                ng-model="detailInfo.headerInfo.address" required yb-focus maxlength="400">
                            <div class="msg-block"
                                ng-show="orderForm.address.$dirty || (orderForm.address.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.address.$error.required && !orderForm.address.focused">
                                    <div class="msg-triangle"></div>
                                    必填项，请填写
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">备注：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="note" class="form-control" ng-model="detailInfo.headerInfo.note"
                                maxlength="200">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">制单时间：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                        <label class="col-xs-4 control-label max-w-100">尾差金额：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="cashShortAndOver" class="form-control"
                                ng-model="detailInfo.headerInfo.cashShortAndOver" maxlength="200">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">是否前移：</label>
                        <div class="col-xs-8 wrapper-none">
                            <select class="form-control" name="forward"
                                ng-model="detailInfo.headerInfo.forward">
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                        <label class="col-xs-4 control-label max-w-100">CRM单号：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.crmOrder|| '-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">币种：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.currency || '-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100 spill-dots" title="采购订单编号">销售合同编号：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headerInfo.saleContractNo" maxlength="20">
                        </div>
                    </div>
                    <!-- <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH || isNY">
                        <label class="col-xs-4 control-label max-w-100 spill-dots"><i>*</i>所属办事处：</label>
                        <div class="col-xs-8 wrapper-none">
                            <select name="agency" required ng-model="detailInfo.headerInfo.agency" class="form-control" >
                                <option value="">请选择</option>
                                     <option ng-repeat="item in aencyList" value="{{item.name}}"
                                           ng-selected="item.name==detailInfo.headerInfo.agency">
                                                    {{item.name}}</option>
                            </select>
                            <div class="msg-block"
                                ng-if="orderForm.agency.$dirty || (orderForm.agency.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.agency.$error.required && !orderForm.agency.focused">
                                    <div class="msg-triangle"></div>
                                    必填项，请填写
                                </div>
                            </div>
                        </div>
                    </div> -->

                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH || isNY">
                        <label class="col-xs-4 control-label max-w-100 spill-dots"><i>*</i><span translate>所属办事处</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="agency" class="form-control light-bg"
                                ng-model="detailInfo.headerInfo.agency" ng-click="selectAgent()"
                                required yb-focus readonly required yb-focus readonly
                                translate translate-attr-placeholder="请选择">

                            <div class="msg-block"
                                ng-show="orderForm.agency.$dirty || (orderForm.agency.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.agency.$error.required && !orderForm.agency.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>



                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH || isNY">
                        <label class="col-xs-4 control-label max-w-100 spill-dots"><i>*</i>办事处对接人：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" name="agencyContactPerson" ng-model="detailInfo.headerInfo.agencyContactPerson" maxlength="50" required>

                            <div class="msg-block"
                                ng-if="orderForm.agencyContactPerson.$dirty || (orderForm.agencyContactPerson.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.agencyContactPerson.$error.required && !orderForm.agencyContactPerson.focused">
                                    <div class="msg-triangle"></div>
                                    必填项，请填写
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCHK">
                        <label class="col-xs-4 control-label max-w-100">分销类型：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.distributionTypeShow || '-'}}
                        </label>
                    </div>

                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH">
                        <label class="col-xs-4 control-label max-w-100">合同号：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.contractBillNo || '-'}}
                        </label>
                    </div>

                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH">
                        <label class="col-xs-4 control-label max-w-100">订单类型：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.headerInfo.billTypeMode || '-'}}
                        </label>
                    </div>
                </form>
                <div class="row wrapper-y-xs">
                    <div class="col-xs-12 operate-bar font-0" style="display: flex;align-items: baseline;">
                        <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()">批量删除</button>
                        <button class="btn btn-operate m-r-sm" ng-if="isJCHK && tabFlag.type == 0" ng-click="importMateriel()" translate>导入</button>
                        <div ng-if="isKJ && tabFlag.type == 0">
                            <label class="font-12 m-r-xs">只显示有库存:</label>
                            <toggle ng-model="onlyShowHasStock.value" yb-click="toggleShowHasStock(onlyShowHasStock.value)"></toggle>
                        </div>
                    </div>
                </div>
                <div class="main-area d-b-60" ng-style="{'top': !!detailFlag[0] ? (isJCH || isNY || isJCHK?'470px':'420px') : '110px'}">
                    <div yb-table-fixed class="table-fixed-wrap">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{tableMaterialConfig.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th width="40" class="th-check text-center">
                                            <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                                yb-click="selectAll(detailInfo.materialList, 'Material')"></div>
                                        </th>
                                        <th width="120" class="border-l-none">
                                            操作
                                        </th>
                                        <th ng-repeat="itemCol in tableMaterialConfig.tableCol track by $index"
                                            width="{{itemCol.width}}"
                                            ng-click="materialToSort(tableMaterialConfig.tableCol, $index)"
                                            ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="purchaseTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="detailInfo.materialList.length > 0">
                            <table class="table-fixed border-none" width="{{tableMaterialConfig.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in detailInfo.materialList track by $index">
                                        <td width="40" class="text-center">
                                            <div yb-check-box yb-checked="item.isChecked"
                                                yb-click="selectSingle(item, detailInfo.materialList, 'Material')"
                                                yb-disabled="item.status == 2 || item.status == 3"></div>
                                        </td>
                                        <td width="120" class="font-0">
                                            <button class="btn btn-operate m-r-sm"
                                                ng-disabled="item.status == 2 || item.status == 3"
                                                ng-click="delMaterial($index)">删除</button>
                                            <button class="btn btn-operate" ng-if="isWJ"
                                                ng-click="selectSeal(item,$index)">选择钢印号</button>
                                        </td>
                                        <td ng-repeat="itemCol in tableMaterialConfig.tableCol"
                                            width="{{itemCol.width}}">
                                            <div class="spill-dots"
                                                ng-if="(!itemCol.isInput&&!itemCol.isRemark) || item.status == 2 || item.status == 3"
                                                title="{{item[itemCol.dataField]}}">
                                                <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                                    {{item[itemCol.dataField]}}
                                                </a>
                                                <span ng-if="!itemCol.clickFn">
                                                    <a class="btn-operate m-r-xs"
                                                        ng-click="tdClick(sapStockMap[item.materialsNo], itemCol.clickFnDaChang)"
                                                        ng-if="!!itemCol.clickFnDaChang">
                                                        {{sapStockMap[item.materialsNo].totalStock}}
                                                    </a>
                                                    <span ng-if="!itemCol.clickFnDaChang">
                                                        {{item[itemCol.dataField]}}
                                                    </span>
                                                </span>
                                            </div>
                                            <div class="td-edit pos-r"
                                                ng-if="itemCol.isInput && (!item.status || item.status == 0 || item.status == 1)">
                                                <input type="text" class="form-control"
                                                    ng-model="item[itemCol.dataField]" ng-change="checkQty(item)"
                                                    ng-focus="showQtyTip(item)" ng-blur="hideQtyTip(item)"
                                                    yb-number-input disable-decimal="false" decimal-places="3"
                                                    ng-class="{'error': item.qtyErr, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3),
                                                    'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2), 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)}">
                                                <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                    <i class="triangle"></i>
                                                    <div class="msg">{{item.qtyErrMsg}}</div>
                                                </div>
                                                <div class="pos-a tool-tips" ng-if="!!item.showStockErr">
                                                    <i class="triangle"></i>
                                                    <div class="msg">{{item.qtyErrMsg}}</div>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="detailInfo.materialList.length === 0">
                            暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center clearfix">
                    <button type="button" class="btn btn-default m-r-sm" ng-click="stepList.curStep = 0"
                        ng-if="!detailInfo.headerInfo.id">上一步</button>
                    <button type="button" class="btn btn-primary m-r-sm" ng-disabled="clickValue"
                        ng-click="saveData(orderForm.$valid)">保存</button>
                    <button type="button" class="btn btn-primary m-r-sm" ng-disabled="clickValue"
                        ng-click="submitData(orderForm.$valid)">提交</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                </div>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[2]" ng-if="activeFlag[2]">
            <div class="main-area d-b-60" style="top:35px;">
                <div class="m-t-sm form-up-tb clearfix">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="发货通知单号">发货通知单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.deliveryNo || '-'}}">
                            {{detailInfo.headerInfo.deliveryNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">客户名称：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseOrgName || '-'}}">
                            {{detailInfo.headerInfo.purchaseOrgName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">销售意向单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.saleNo || '-'}}">
                            {{detailInfo.headerInfo.saleNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">采购单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseNo || '-'}}">
                            {{detailInfo.headerInfo.purchaseNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">采购合同单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseContractNo || '-'}}">
                            {{detailInfo.headerInfo.purchaseContractNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP关联单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sapOutNo || '-'}}">
                            {{detailInfo.headerInfo.sapOutNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP销售订单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.sapSaleOrder || '-'}}">
                            {{detailInfo.headerInfo.sapSaleOrder || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP外向交货单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.sapOutBill || '-'}}">
                            {{detailInfo.headerInfo.sapOutBill || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP开票凭证：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.sapInvoiceNo   || '-'}}">
                            {{detailInfo.headerInfo.sapInvoiceNo   || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">零件凭证：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.materialsNo || '-'}}">
                            {{detailInfo.headerInfo.materialsNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">采购级别：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseLevelName || '-'}}">
                            {{detailInfo.headerInfo.purchaseLevelName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">售达方：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sold || '-'}}">
                            {{detailInfo.headerInfo.sold || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">送达方：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.delivery || '-'}}">
                            {{detailInfo.headerInfo.delivery || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="采购订单编号">采购订单编号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.customerPurchaseCode || '-'}}">
                            {{detailInfo.headerInfo.customerPurchaseCode || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">分销渠道：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.distributionChannelName || '-'}}">
                            {{detailInfo.headerInfo.distributionChannelName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">付款条件：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.payConditionName || '-'}}">
                            {{detailInfo.headerInfo.payConditionName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">订单类型：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.orderType || '-'}}">
                            {{detailInfo.headerInfo.orderType || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发运方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.deliveryTypeName || '-'}}">
                            {{detailInfo.headerInfo.deliveryTypeName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">结算方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.settleTypeName || '-'}}">
                            {{detailInfo.headerInfo.settleTypeName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发出仓库：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.outLocation || '-'}}">
                            {{detailInfo.headerInfo.outLocation || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发出库区：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outArea || '-'}}">
                            {{detailInfo.headerInfo.outArea || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">收货人：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.receiverName || '-'}}">
                            {{detailInfo.headerInfo.receiverName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">联系方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.receiverPhone || '-'}}">
                            {{detailInfo.headerInfo.receiverPhone || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">传真：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.receiverFax || '-'}}">
                            {{detailInfo.headerInfo.receiverFax || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">收货地址：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.address || '-'}}">
                            {{detailInfo.headerInfo.address || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.note || '-'}}">
                            {{detailInfo.headerInfo.note || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.address|YbDate}}">
                            {{detailInfo.headerInfo.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                        <label class="col-xs-4 m-b-n text-right max-w-100">尾差金额：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.cashShortAndOver || '-'}}">
                            {{detailInfo.headerInfo.cashShortAndOver || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">出库时间：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.address|YbDate}}">
                            {{(detailInfo.headerInfo.updateStateDate|YbDate:"yyyy-MM-dd HH:mm:ss") || "-"}}
                        </div>
                    </div>
                     <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">交货日期：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.deliveryDate|YbDate}}">
                            {{(detailInfo.headerInfo.deliveryDate|YbDate:"yyyy-MM-dd") || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">是否打印：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.isPrint===0?'否':'是'}}">
                            {{detailInfo.headerInfo.isPrint===0?'否':'是'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">总价：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.totalDiscountPrice}}">
                            {{detailInfo.headerInfo.totalDiscountPrice}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">国家和地区：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.country||'-'}}">
                            {{detailInfo.headerInfo.country||'-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">是否前移：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.forward||'-'}}">
                            {{detailInfo.headerInfo.forward||'-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                        <label class="col-xs-4 m-b-n text-right max-w-100">CRM单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.crmOrder||'-'}}">
                            {{detailInfo.headerInfo.crmOrder||'-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">币种：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.currency||'-'}}">
                            {{detailInfo.headerInfo.currency||'-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">销售合同编号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.saleContractNo||'-'}}">
                            {{detailInfo.headerInfo.saleContractNo||'-'}}
                        </div>
                    </div>
                    <div ng-if="isJCH || isNY">
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100">所属办事处：</label>
                            <div class="col-xs-8 wrapper-none spill-dots">
                                {{detailInfo.headerInfo.agency||'-'}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100">办事处对接人：</label>
                            <div class="col-xs-8 wrapper-none spill-dots">
                                {{detailInfo.headerInfo.agencyContactPerson||'-'}}
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCHK">
                        <label class="col-xs-4 m-b-n text-right max-w-100">分销类型：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.headerInfo.distributionTypeShow || '-'}}
                        </label>
                    </div>

                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH">
                        <label class="col-xs-4 m-b-n text-right max-w-100">合同号：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.headerInfo.contractBillNo || '-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH">
                        <label class="col-xs-4 m-b-n text-right max-w-100">订单类型：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.headerInfo.billTypeMode || '-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">开票状态：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.headerInfo.ticketStateShow || '-'}}
                        </label>
                    </div>
                </div>
                <div class="row wrapper-y-xs" ng-if="isJCH">
                    <div class="col-xs-12 operate-bar font-0">
                        <button class="btn btn-operate m-r-sm"
                            ng-click="batchPrint4Details()"
                            ng-disabled="!btnPermission.deliveryNoticePrint || detailInfo.headerInfo.reviewState!=2">批量打印</button>
                    </div>
                </div>
                <div yb-table-fixed class="table-fixed-wrap" ng-style="{'top': isJCH?'300px':'260px'}">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{detailTbConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterialDetail" yb-click="selectAll(detailInfo.materialList, 'MaterialDetail')"></div>
                                    </th>
                                    <th width="{{isJCH ? 110 : 80}}" class="border-l-none">操作</th>
                                    <th ng-repeat="itemCol in detailTbConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="purchaseTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{detailTbConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.materialList track by $index">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, detailInfo.materialList, 'MaterialDetail')"></div>
                                    </td>
                                    <td width="{{isJCH ? 110 : 80}}" class="font-0">
                                        <button class="btn btn-operate m-r-xs" ng-if="isJCH"
                                            ng-click="printBill4Details(item)"
                                            ng-disabled="!btnPermission.deliveryNoticePrint || detailInfo.headerInfo.reviewState!=2">打印</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="mandatoryFinish(detailInfo.headerInfo.deliveryNo, detailInfo.headerInfo.id, item.materialsNo)"
                                            ng-disabled=" detailInfo.headerInfo.status == '0' ||  detailInfo.headerInfo.isOut == '2' || detailInfo.headerInfo.isOut == '3' || item.status == '2' || item.status == '3' || !btnPermission.mandatoryFinish"
                                            title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="handleDeliveryRevoke(detailInfo.headerInfo, item)"
                                            ng-disabled=" detailInfo.headerInfo.status == '0' || detailInfo.headerInfo.isOut == '3' || item.status == '0' || item.status == '3' || !btnPermission.deliveryRevoke"
                                            title="{{!btnPermission.deliveryRevoke?'无权限执行此操作':''}}">撤回</button>
                                    </td>
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in detailTbConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span ng-if="itemCol.dataField !='deliveryQty'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdRKClick(item)" ng-if="itemCol.dataField == 'deliveryQty'">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.materialList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="mandatoryFinish(detailInfo.headerInfo.deliveryNo, detailInfo.headerInfo.id)"
                    ng-disabled=" detailInfo.headerInfo.status == '0' || detailInfo.headerInfo.isOut == '2' || detailInfo.headerInfo.isOut == '3' || !btnPermission.mandatoryFinish"
                    title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                <button type="button" class="btn btn-default" ng-click="changeTab(0)">返回</button>
            </div>
        </div>
        <div tab heading="出库" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="main-area d-b-60" style="top:35px;">
                <div class="m-t-sm form-up-tb clearfix">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="发货通知单号">发货通知单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.deliveryNo || '-'}}">
                            {{detailInfo.headerInfo.deliveryNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">客户名称：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseOrgName || '-'}}">
                            {{detailInfo.headerInfo.purchaseOrgName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">销售意向单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.saleNo || '-'}}">
                            {{detailInfo.headerInfo.saleNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">采购单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseNo || '-'}}">
                            {{detailInfo.headerInfo.purchaseNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">采购合同单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseContractNo || '-'}}">
                            {{detailInfo.headerInfo.purchaseContractNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP关联单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sapOutNo || '-'}}">
                            {{detailInfo.headerInfo.sapOutNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP销售订单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.sapSaleOrder || '-'}}">
                            {{detailInfo.headerInfo.sapSaleOrder || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP外向交货单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.sapOutBill || '-'}}">
                            {{detailInfo.headerInfo.sapOutBill || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">零件凭证：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.materialsNo || '-'}}">
                            {{detailInfo.headerInfo.materialsNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">采购级别：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseLevelName || '-'}}">
                            {{detailInfo.headerInfo.purchaseLevelName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">售达方：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sold || '-'}}">
                            {{detailInfo.headerInfo.sold || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">送达方：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.delivery || '-'}}">
                            {{detailInfo.headerInfo.delivery || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="采购订单编号">采购订单编号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.customerPurchaseCode || '-'}}">
                            {{detailInfo.headerInfo.customerPurchaseCode || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">分销渠道：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.distributionChannelName || '-'}}">
                            {{detailInfo.headerInfo.distributionChannelName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">付款条件：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.payConditionName || '-'}}">
                            {{detailInfo.headerInfo.payConditionName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">订单类型：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.orderType || '-'}}">
                            {{detailInfo.headerInfo.orderType || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发运方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.deliveryTypeName || '-'}}">
                            {{detailInfo.headerInfo.deliveryTypeName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">结算方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.settleTypeName || '-'}}">
                            {{detailInfo.headerInfo.settleTypeName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发出仓库：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.outLocation || '-'}}">
                            {{detailInfo.headerInfo.outLocation || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发出库区：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outArea || '-'}}">
                            {{detailInfo.headerInfo.outArea || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">收货人：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.receiverName || '-'}}">
                            {{detailInfo.headerInfo.receiverName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">联系方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.receiverPhone || '-'}}">
                            {{detailInfo.headerInfo.receiverPhone || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">传真：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.receiverFax || '-'}}">
                            {{detailInfo.headerInfo.receiverFax || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">收货地址：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.address || '-'}}">
                            {{detailInfo.headerInfo.address || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.note || '-'}}">
                            {{detailInfo.headerInfo.note || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.address|YbDate}}">
                            {{detailInfo.headerInfo.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                        <label class="col-xs-4 m-b-n text-right max-w-100">尾差金额：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.cashShortAndOver || '-'}}">
                            {{detailInfo.headerInfo.cashShortAndOver || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">币种：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.currency || '-'}}">
                            {{detailInfo.headerInfo.currency || "-"}}
                        </div>
                    </div>
                </div>
                <div yb-table-fixed class="table-fixed-wrap" style="top:210px">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{outTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in outTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="purchaseTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{outTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.materialList track by $index">
                                    <td ng-repeat="itemCol in outTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-class="{'wrapper-none': itemCol.inputType === 'func'}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div class="spill-dots"
                                            ng-if="!itemCol.input || item.status == 2 || item.status == 3"
                                            title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                            select-obj="selDepot(item)" clear-form="clearDepot(item)" tips-name="储位"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'func' && (item.status == 0 || item.status == 1)"
                                            title="{{item[itemCol.dataField]}}"></div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.materialList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="outboundSubmit()">确认出库</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="调整" active="activeFlag[4]" ng-if="activeFlag[4]">

            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>基本信息
                </div>
                <div class="pull-right" ng-click="switchDetailBar(0)">
                    <span ng-show="!detailFlag[0]" title="展开"><i class="yb-icon ico-angle-double-down"></i></span>
                    <span ng-show="detailFlag[0]" title="收起"><i class="yb-icon ico-angle-double-up"></i></span>
                </div>
            </div>
            <form name="orderForm" class="form-horizontal form-up-tb border-b p-t-xs clearfix" ng-show="detailFlag[0]">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100 spill-dots" title="发货通知单号">发货通知单号：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.deliveryNo || '-'}}">
                        {{detailInfo.headerInfo.deliveryNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">客户名称：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{detailInfo.headerInfo.purchaseOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">销售意向单：</label>
                    <label class="col-xs-8 control-label p-l-n text-left">
                        {{detailInfo.headerInfo.saleNo}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">采购单号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left">
                        {{detailInfo.headerInfo.purchaseNo||'-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">SAP关联单号：</label>
                    <div class="col-xs-8 control-label p-l-n text-left"
                        title="{{detailInfo.headerInfo.sapOutNo || '-'}}">
                        {{detailInfo.headerInfo.sapOutNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">采购级别：</label>
                    <label class="col-xs-8 control-label p-l-n text-left">
                        {{detailInfo.headerInfo.purchaseLevelName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">售达方：</label>
                    <label class="col-xs-8 control-label p-l-n text-left">
                        {{detailInfo.headerInfo.sold||'-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">送达方：</label>
                    <label class="col-xs-8 control-label p-l-n text-left">
                        {{detailInfo.headerInfo.delivery||'-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100 spill-dots" title="采购订单编号">采购订单编号：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="purchaseBillId" class="form-control"
                            ng-model="detailInfo.headerInfo.customerPurchaseCode" maxlength="30">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>分销渠道：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div dictionary-selector ng-model="detailInfo.headerInfo.distributionChannelName"
                            sel-key="FXQD">
                            <input type="text" name="distributionChannel" class="form-control light-bg"
                                ng-model="detailInfo.headerInfo.distributionChannelName" placeholder="请选择" required
                                readonly yb-focus>
                        </div>

                        <div class="msg-block"
                            ng-if="orderForm.distributionChannel.$dirty || (orderForm.distributionChannel.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.distributionChannel.$error.required && !orderForm.distributionChannel.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>付款条件：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div dictionary-selector ng-model="detailInfo.headerInfo.payConditionName" sel-key="FKTJ">
                            <input type="text" name="payCondition" class="form-control light-bg"
                                ng-model="detailInfo.headerInfo.payConditionName" placeholder="请选择" required readonly
                                yb-focus>
                        </div>

                        <div class="msg-block"
                            ng-if="orderForm.payCondition.$dirty || (orderForm.payCondition.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.payCondition.$error.required && !orderForm.payCondition.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">订单类型：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div dictionary-selector ng-model="detailInfo.headerInfo.orderType" sel-key="XSDDLX">
                            <input type="text" name="orderType" class="form-control light-bg"
                                ng-model="detailInfo.headerInfo.orderType" placeholder="请选择" readonly>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>发运方式：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div select-send-type first-level-model="detailInfo.headerInfo.deliveryTypeId"
                            second-level-model="detailInfo.headerInfo.sendTypeChildId"
                            parent-type-name="detailInfo.headerInfo.deliveryTypeName"
                            child-type-name="detailInfo.headerInfo.sendTypeChildName"></div>
                        <div class="msg-block"
                            ng-if="orderForm.sendType.$dirty || (orderForm.sendType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.sendType.$error.required && !orderForm.sendType.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>结算方式：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div dictionary-selector ng-model="detailInfo.headerInfo.settleTypeName" sel-key="JSFS">
                            <input type="text" name="settleType" class="form-control light-bg"
                                ng-model="detailInfo.headerInfo.settleTypeName" placeholder="请选择" required readonly
                                yb-focus>
                        </div>

                        <div class="msg-block"
                            ng-if="orderForm.settleType.$dirty || (orderForm.settleType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.settleType.$error.required && !orderForm.settleType.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>发出仓库：</label>
                    <label class="col-xs-8 control-label p-l-n text-left">
                        {{detailInfo.headerInfo.outLocation||'-'}}
                    </label>

                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>发出库区：</label>
                    <label class="col-xs-8 control-label p-l-n text-left">
                        {{detailInfo.headerInfo.outArea||'-'}}
                    </label>

                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>收货人：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverName" class="form-control"
                            ng-model="detailInfo.headerInfo.receiverName" required yb-focus maxlength="11">

                        <div class="msg-block"
                            ng-show="orderForm.receiverName.$dirty || (orderForm.receiverName.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverName.$error.required && !orderForm.receiverName.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>联系方式：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverPhone" class="form-control"
                            ng-model="detailInfo.headerInfo.receiverPhone" required yb-focus maxlength="11">
                        <div class="msg-block"
                            ng-show="orderForm.receiverPhone.$dirty || (orderForm.receiverPhone.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverPhone.$error.required && !orderForm.receiverPhone.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">传真：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverFax" class="form-control"
                            ng-model="detailInfo.headerInfo.receiverFax" maxlength="20">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>收货地址：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="address" class="form-control" ng-model="detailInfo.headerInfo.address"
                            required yb-focus maxlength="400">
                        <div class="msg-block"
                            ng-show="orderForm.address.$dirty || (orderForm.address.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.address.$error.required && !orderForm.address.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="note" class="form-control" ng-model="detailInfo.headerInfo.note"
                            maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单时间：</label>
                    <label class="col-xs-8 control-label p-l-n text-left">
                        {{detailInfo.headerInfo.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                    <label class="col-xs-4 control-label max-w-100">尾差金额：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="cashShortAndOver" class="form-control" ng-model="detailInfo.headerInfo.cashShortAndOver"
                            maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">是否前移：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.forward||'-'}}">
                        {{detailInfo.headerInfo.forward||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">CRM单号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left">
                        {{detailInfo.headerInfo.crmOrder|| '-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">币种：</label>
                    <label class="col-xs-8 control-label p-l-n text-left">{{detailInfo.headerInfo.currency || '-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH || isNY">
                    <label class="col-xs-4 m-b-n text-right max-w-100">所属办事处：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{detailInfo.headerInfo.agency||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH || isNY">
                    <label class="col-xs-4 m-b-n text-right max-w-100">办事处对接人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{detailInfo.headerInfo.agencyContactPerson||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isJCHK">
                    <label class="col-xs-4 m-b-n text-right max-w-100">分销类型：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">
                        {{detailInfo.headerInfo.distributionTypeShow || '-'}}
                    </label>
                </div>

                <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH">
                    <label class="col-xs-4 m-b-n text-right max-w-100">合同号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{detailInfo.headerInfo.contractBillNo||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH">
                    <label class="col-xs-4 m-b-n text-right max-w-100">订单类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{detailInfo.headerInfo.billTypeMode||'-'}}
                    </div>
                </div>
            </form>

            <div class="main-area d-b-60" ng-style="{'top': !!detailFlag[0] ? (!!isJCH?'390px':'370px') : '80px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{adjustTbConf.scrollWidth}}">
                            <thead>
                                <tr>

                                    <th width="60" class="border-l-none">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in adjustTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-click="materialToSort(adjustTbConf.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="purchaseTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{adjustTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.materialList track by $index">
                                    <td width="60" class="font-0">
                                        <button class="btn btn-operate"
                                            ng-disabled="item.status == 2 || item.status == 3"
                                            ng-click="delMaterial($index)">删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in adjustTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-class="{'wrapper-none': itemCol.inputType === 'func'}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div class="spill-dots"
                                            ng-if="(!itemCol.isInput&&!itemCol.isRemark) || item.status == 2 || item.status == 3"
                                            title="{{item[itemCol.dataField]}}">
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                            <span ng-if="!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </div>
                                        <div class="td-edit pos-r"
                                            ng-if="itemCol.isInput && (!item.status || item.status == 0 || item.status == 1)">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="checkQty(item)" ng-focus="showQtyTip(item)"
                                                ng-blur="hideQtyTip(item)" yb-number-input disable-decimal="false"
                                                decimal-places="3"
                                                ng-class="{'error': item.qtyErr || item.qtyStockErr}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg">{{item.qtyErrMsg}}</div>
                                            </div>
                                            <div class="pos-a tool-tips" ng-if="!!item.showStockErr">
                                                <i class="triangle"></i>
                                                <div class="msg">{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.materialList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-disabled="clickValue"
                    ng-click="adjustData()">保存</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>


        <div tab heading="新增收款单" active="activeFlag[5]" ng-if="activeFlag[5]">
            <div class="pos-a-full shuttle-box left" style="right: 65%;top: 35px;">
                <div class="box-head clearfix">
                    <span class="font-14">
                        收款信息
                    </span>
                </div>
                <div class="pos-a-full box-body has-head has-foot border-t">
                    <form name="checkForm" class="main-wrap form-horizontal form-up-tb p-t clearfix" novalidate>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label">往来对象：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                                title="{{orderObj.headerInfo.purchaseOrgName}}">
                                {{orderObj.headerInfo.purchaseOrgName}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label">结算方式：</label>
                            <label class="col-xs-8 control-label p-l-n text-left clearfix">
                                按订单结算
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label">收款金额：</label>
                            <label class="col-xs-8 control-label p-l-n text-left clearfix">
                                {{orderObj.headerInfo.totalDiscountPrice}} 元
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label">优惠金额：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="discountPrice" class="form-control"
                                    ng-change="orderObj.headerInfo.realPrice = orderObj.headerInfo.totalDiscountPrice-orderObj.headerInfo.discountPrice"
                                    ng-model="orderObj.headerInfo.discountPrice" yb-number-input
                                    max="orderObj.headerInfo.totalDiscountPrice" disable-decimal="false"
                                    decimal-places="3">
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label">实际收款金额：</label>
                            <label class="col-xs-8 control-label p-l-n text-left clearfix">
                                {{(orderObj.headerInfo.realPrice==0||orderObj.headerInfo.realPrice)?orderObj.headerInfo.realPrice:orderObj.headerInfo.totalDiscountPrice}}
                                元
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label"><i>*</i>经办人：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="operatorName" class="form-control light-bg"
                                    ng-model="orderObj.headerInfo.operatorName" ng-click="selectOperator()" required
                                    yb-focus readonly placeholder="请选择">

                                <div class="msg-block"
                                    ng-show="checkForm.operatorName.$dirty || (checkForm.operatorName.$invalid && submitted)">
                                    <div class="error-msg"
                                        ng-if="checkForm.operatorName.$error.required && !checkForm.operatorName.focused">
                                        <div class="msg-triangle"></div>
                                        必填项，请填写
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label">收款时间：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{orderObj.headerInfo.createDate | YbDate:"yyyy-MM-dd HH:mm:ss"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label">备注：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="note" class="form-control" ng-model="orderObj.headerInfo.note"
                                    maxlength="200">
                            </div>
                        </div>
                    </form>
                </div>
                <div class="bottom-area btn-bar text-center border-t clearfix">
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="saveAddReceipt(checkForm.$valid)">保存
                    </button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                </div>
            </div>
            <div class="pos-a-full shuttle-box right" style="left: 35%;top: 35px;bottom: 10px">
                <div class="box-head clearfix">
                    <span class="font-14">
                        收款单据
                    </span>
                </div>
                <div class="pos-a-full box-body has-head border-t">
                    <div yb-table-fixed class="table-fixed-wrap" style="top: 15px;left: 0">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{receiptTableInfo.tableConfig.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in receiptTableInfo.tableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}"
                                            ng-click="receiptTableInfo.toSort(receiptTableInfo.tableConfig.tableCol, $index)"
                                            ng-show="!!itemCol.isShow">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="receiptTableInfo.tableConfig.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="receiptTableInfo.dataList.length > 0">
                            <table class="table-fixed border-none" width="{{receiptTableInfo.tableConfig.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in receiptTableInfo.dataList track by $index"
                                        ng-class="{'row-selected': $index === receiptTableInfo.markInfo.curRow}"
                                        ng-click="receiptTableInfo.selectRow($index)">
                                        <td class="spill-dots"
                                            ng-repeat="itemCol in receiptTableInfo.tableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow"
                                            title="{{item[itemCol.dataField]}}">
                                            <div ng-switch="itemCol.type">
                                                <div ng-switch-when="click">
                                                    <a class="btn-operate m-r-xs"
                                                        ng-click="receiptTableInfo.tdClick(item, itemCol.clickFn)">
                                                        {{item[itemCol.dataField]}}
                                                    </a>
                                                </div>
                                                <div ng-switch-default>
                                                    <span>{{item[itemCol.dataField]}}</span>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="receiptTableInfo.dataList.length === 0">
                            暂时没有数据
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div tab heading="单据详情" active="activeFlag[6]" ng-if="activeFlag[6]">
            <div class="main-area d-b-60" style="top:35px;">
                <div class="m-t-sm form-up-tb clearfix">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="发货通知单号">发货通知单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.deliveryNo || '-'}}">
                            {{orderDetailObj.deliveryNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">客户名称：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.purchaseOrgName || '-'}}">
                            {{orderDetailObj.purchaseOrgName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">销售意向单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.saleNo || '-'}}">
                            {{orderDetailObj.saleNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">采购单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.purchaseNo || '-'}}">
                            {{orderDetailObj.purchaseNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP关联单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.sapOutNo || '-'}}">
                            {{orderDetailObj.sapOutNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP销售订单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.sapSaleOrder || '-'}}">
                            {{orderDetailObj.sapSaleOrder || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP外向交货单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.sapOutBill || '-'}}">
                            {{orderDetailObj.sapOutBill || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">零件凭证：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.materialsNo || '-'}}">
                            {{orderDetailObj.materialsNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">采购级别：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{orderDetailObj.purchaseLevelName || '-'}}">
                            {{orderDetailObj.purchaseLevelName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">售达方：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.sold || '-'}}">
                            {{orderDetailObj.sold || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">送达方：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.delivery || '-'}}">
                            {{orderDetailObj.delivery || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="采购订单编号">采购订单编号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{orderDetailObj.customerPurchaseCode || '-'}}">
                            {{orderDetailObj.customerPurchaseCode || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">分销渠道：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{orderDetailObj.distributionChannelName || '-'}}">
                            {{orderDetailObj.distributionChannelName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">付款条件：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{orderDetailObj.payConditionName || '-'}}">
                            {{orderDetailObj.payConditionName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">订单类型：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.orderType || '-'}}">
                            {{orderDetailObj.orderType || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发运方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{orderDetailObj.deliveryTypeName || '-'}}">
                            {{orderDetailObj.deliveryTypeName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">结算方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.settleTypeName || '-'}}">
                            {{orderDetailObj.settleTypeName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发出仓库：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.outLocation || '-'}}">
                            {{orderDetailObj.outLocation || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发出库区：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.outArea || '-'}}">
                            {{orderDetailObj.outArea || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">收货人：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.receiverName || '-'}}">
                            {{orderDetailObj.receiverName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">联系方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.receiverPhone || '-'}}">
                            {{orderDetailObj.receiverPhone || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">传真：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.receiverFax || '-'}}">
                            {{orderDetailObj.receiverFax || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">收货地址：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.address || '-'}}">
                            {{orderDetailObj.address || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.note || '-'}}">
                            {{orderDetailObj.note || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.address|YbDate}}">
                            {{orderDetailObj.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">是否打印：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.isPrint===0?'否':'是'}}">
                            {{orderDetailObj.isPrint===0?'否':'是'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">总价：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.totalDiscountPrice}}">
                            {{orderDetailObj.totalDiscountPrice}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">总价：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.currency || '-'}}">
                            {{orderDetailObj.currency || '-'}}
                        </div>
                    </div>
                </div>
                <div yb-table-fixed class="table-fixed-wrap" style="top:210px">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{orderDetailTableInfo.tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in orderDetailTableInfo.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="orderDetailTableInfo.tableConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderDetailTableInfo.dataList.length > 0">
                        <table class="table-fixed border-none" width="{{orderDetailTableInfo.tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderDetailTableInfo.dataList track by $index">
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in orderDetailTableInfo.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span>{{item[itemCol.dataField]}}</span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderDetailTableInfo.dataList.length === 0">
                        暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default" ng-click="changeTab(5)">返回</button>
            </div>
        </div>
        <div tab heading="审核" active="activeFlag[7]" ng-if="activeFlag[7]">

            <div class="main-area d-b-60" style="top:35px;">
                <div class="m-t-sm form-up-tb clearfix">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="发货通知单号">发货通知单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.deliveryNo || '-'}}">
                            {{detailInfo.headerInfo.deliveryNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">客户名称：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseOrgName || '-'}}">
                            {{detailInfo.headerInfo.purchaseOrgName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">销售意向单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.saleNo || '-'}}">
                            {{detailInfo.headerInfo.saleNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">采购单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseNo || '-'}}">
                            {{detailInfo.headerInfo.purchaseNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">采购合同单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseContractNo || '-'}}">
                            {{detailInfo.headerInfo.purchaseContractNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP关联单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sapOutNo || '-'}}">
                            {{detailInfo.headerInfo.sapOutNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP销售订单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.sapSaleOrder || '-'}}">
                            {{detailInfo.headerInfo.sapSaleOrder || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">SAP外向交货单：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.sapOutBill || '-'}}">
                            {{detailInfo.headerInfo.sapOutBill || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">零件凭证：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.materialsNo || '-'}}">
                            {{detailInfo.headerInfo.materialsNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">采购级别：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.purchaseLevelName || '-'}}">
                            {{detailInfo.headerInfo.purchaseLevelName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">售达方：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sold || '-'}}">
                            {{detailInfo.headerInfo.sold || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">送达方：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.delivery || '-'}}">
                            {{detailInfo.headerInfo.delivery || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="采购订单编号">采购订单编号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.customerPurchaseCode || '-'}}">
                            {{detailInfo.headerInfo.customerPurchaseCode || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">分销渠道：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.distributionChannelName || '-'}}">
                            {{detailInfo.headerInfo.distributionChannelName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">付款条件：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.payConditionName || '-'}}">
                            {{detailInfo.headerInfo.payConditionName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">订单类型：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.orderType || '-'}}">
                            {{detailInfo.headerInfo.orderType || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发运方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.deliveryTypeName || '-'}}">
                            {{detailInfo.headerInfo.deliveryTypeName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">结算方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.settleTypeName || '-'}}">
                            {{detailInfo.headerInfo.settleTypeName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发出仓库：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.outLocation || '-'}}">
                            {{detailInfo.headerInfo.outLocation || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">发出库区：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outArea || '-'}}">
                            {{detailInfo.headerInfo.outArea || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">收货人：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.receiverName || '-'}}">
                            {{detailInfo.headerInfo.receiverName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">联系方式：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.receiverPhone || '-'}}">
                            {{detailInfo.headerInfo.receiverPhone || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">传真：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.receiverFax || '-'}}">
                            {{detailInfo.headerInfo.receiverFax || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">收货地址：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.address || '-'}}">
                            {{detailInfo.headerInfo.address || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.note || '-'}}">
                            {{detailInfo.headerInfo.note || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.address|YbDate}}">
                            {{detailInfo.headerInfo.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                        <label class="col-xs-4 m-b-n text-right max-w-100">尾差金额：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.cashShortAndOver || '-'}}">
                            {{detailInfo.headerInfo.cashShortAndOver || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">出库时间：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.address|YbDate}}">
                            {{(detailInfo.headerInfo.updateStateDate|YbDate:"yyyy-MM-dd HH:mm:ss") || "-"}}
                        </div>
                    </div>
                     <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">交货日期：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.deliveryDate|YbDate}}">
                            {{(detailInfo.headerInfo.deliveryDate|YbDate:"yyyy-MM-dd") || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">是否打印：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.isPrint===0?'否':'是'}}">
                            {{detailInfo.headerInfo.isPrint===0?'否':'是'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">总价：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.headerInfo.totalDiscountPrice}}">
                            {{detailInfo.headerInfo.totalDiscountPrice}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">国家和地区：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.country||'-'}}">
                            {{detailInfo.headerInfo.country||'-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">是否前移：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.forward||'-'}}">
                            {{detailInfo.headerInfo.forward||'-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                        <label class="col-xs-4 m-b-n text-right max-w-100">CRM单号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.crmOrder||'-'}}">
                            {{detailInfo.headerInfo.crmOrder||'-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                        <label class="col-xs-4 m-b-n text-right max-w-100">币种：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.currency||'-'}}">
                            {{detailInfo.headerInfo.currency||'-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCHK">
                        <label class="col-xs-4 m-b-n text-right max-w-100">外销总价：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.headerInfo.totalExportPrice||'-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH || isNY">
                        <label class="col-xs-4 m-b-n text-right max-w-100">所属办事处：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.headerInfo.agency||'-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH || isNY">
                        <label class="col-xs-4 m-b-n text-right max-w-100">办事处对接人：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.headerInfo.agencyContactPerson||'-'}}
                        </div>
                    </div>

                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH">
                        <label class="col-xs-4 m-b-n text-right max-w-100">合同号：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.headerInfo.contractBillNo||'-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH">
                        <label class="col-xs-4 m-b-n text-right max-w-100">订单类型：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.headerInfo.billTypeMode||'-'}}
                        </div>
                    </div>
                </div>
                <div yb-table-fixed class="table-fixed-wrap" style="right:240px;top:255px;">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{detailTbConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in detailTbConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="purchaseTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{detailTbConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.materialList track by $index">
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in detailTbConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span>{{item[itemCol.dataField]}}</span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.materialList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{'top': isTJ?'295px':'275px'}"
                style="left: auto; width: 225px;">
                <div class="main-wrap p-b-lg over-flow-h">
                    <textarea yb-word-count max-size="500" name="auditMessage" class="form-control full"
                        ng-model="orderObj.auditMessage" ng-class="{'error': !orderObj.auditMessage && submitted}"
                        placeholder="审核意见"></textarea>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="auditPass()">通过</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="auditReject()">拒绝</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
    </div>
</div>
